/*
	sample_writetofile.red
	
	This Scarlett program writes strings, variable contents and integers to a file.
*/


// Declare some variables
save 'I am so glad I took CS153' into cs153
save 2011 into year
save 'in' into str1
save 'A++++++++' into grade



write cs153 into file:///writetest.txt
write str1 into file:///writetest.txt
write year into file:///writetest.txt
write 'and everybody gets an' into file:///writetest.txt
write grade into file:///writetest.txt
write 666 into file:///writetest.txt



show '\n' 
show 'done'
show '\n'

